/*
 * @Author       : NaN 353362604@qq.com
 * @Date         : 2023-01-12 09:35:49
 * @LastEditTime : 2023-06-27 13:52:29
 * @LastEditors  : NaN 353362604@qq.com
 * @FilePath     : \AdminStration\src\Common\Router\MenuNav\TwoRouter\Organization.jsx
 * @Description  :
 */
import { API_LIST } from '../../../Api/Api'
import { commonTableList } from '../Common/common'
import { LaborCompanyList } from '../Common/Conversion'

export const Wage = async ({ OptionsEvent, oneData, Permission, actionRef }) => {
    let data = {
        pageSize: 10,
        hideInSearch: true,
        params: { WageUuid: oneData.uuid },
        get: API_LIST([oneData.uuid])['getPersonWageDetailByPersonUuid'],
        columns: [
            commonTableList.uuid,

            {
                dataIndex: 'organizationName',
                title: '组织机构',
                valueType: 'input',
                rules: true,
                width: 200,
            },
            {
                dataIndex: 'laborCompany',
                title: '劳务公司',
                valueType: 'select',
                rules: true,
                valueEnum: await LaborCompanyList(),
                width: 200,
            },
            {
                dataIndex: 'personName',
                title: '姓名',
                valueType: 'input',
                rules: true,
                width: 150,
            },
            {
                dataIndex: 'idCard',
                title: '身份证号',
                valueType: 'input',
                rules: true,
                width: 200,
            },
            {
                dataIndex: 'creditCardNum',
                title: '银行卡号',
                valueType: 'input',
                rules: true,
                width: 200,
            },
            {
                dataIndex: 'bankName',
                title: '开户委',
                valueType: 'input',
                rules: true,
                width: 200,
            },
            {
                dataIndex: 'personTypeName',
                title: '岗位',
                valueType: 'input',
                rules: true,
                width: 200,
            },
            {
                dataIndex: 'dailyWage',
                title: '日工资',
                valueType: 'input',
                rules: true,
                width: 200,
            },
            {
                dataIndex: 'attendanceDayCount',
                title: '出勤工日',
                valueType: 'input',
                rules: true,
                width: 200,
            },
            {
                dataIndex: 'wage',
                title: '实发工资',
                valueType: 'input',
                rules: true,
                width: 200,
            },
        ],
    }
    return data
}
